//
//  MessagerViewController.m
//  拉勾7.17
//
//  Created by dllo on 16/7/19.
//  Copyright © 2016年 YMJ. All rights reserved.
//

#import "MessagerViewController.h"

@interface MessagerViewController ()

@end

@implementation MessagerViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    // 消息列表
    self.messagelistLabel = [[UILabel alloc] initWithFrame:CGRectMake(154, 28, 107, 27)];
    _messagelistLabel.text = @"消息列表";
    _messagelistLabel.font = [UIFont systemFontOfSize:23];
    _messagelistLabel.textColor = [UIColor blackColor];
    [self.view addSubview:_messagelistLabel];
    // 线视图
    self.line_message = [[UIView alloc] initWithFrame:CGRectMake(0, 79, 414, 1)];
    [self.view addSubview:_line_message];
    _line_message.backgroundColor = [UIColor grayColor];
    // 滚动视图
    self.scroll_message = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 80, WIDTH, HEIGHT -  80)];
    self.scroll_message.contentSize = CGSizeMake(0, HEIGHT);
    self.scroll_message.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:_scroll_message];
    self.scroll_message.bounces = NO;
    // 图标
    self.imageView_message = [[UIImageView alloc] initWithFrame:CGRectMake(157, 151 - 80, 100, 91)];
    self.imageView_message.image = [UIImage imageNamed:@"icon_messgeList"];
    [self.scroll_message addSubview:_imageView_message];
    // 登录拉勾label
    self.loginLagouLabel = [[UILabel alloc] initWithFrame:CGRectMake(157, 200, 100, 21)];
    self.loginLagouLabel.textColor = [UIColor blackColor];
    self.loginLagouLabel.text = @"登录拉勾";
    self.loginLagouLabel.textAlignment = 1;
    self.loginLagouLabel.font = [UIFont systemFontOfSize:20];
    [self.scroll_message addSubview:_loginLagouLabel];
    // 详情
    self.detailLabel = [[UILabel alloc] initWithFrame:CGRectMake(123, 330 - 80, 179, 57)];
    self.detailLabel.textColor = [UIColor blackColor];
    self.detailLabel.numberOfLines = 0;
    self.detailLabel.text = @"随时和企业沟通,掌握投递动态,接收面试通知";
    
    
    self.detailLabel.textAlignment = 0;
    self.detailLabel.font = [UIFont systemFontOfSize:20];
    [self.detailLabel sizeToFit];
    [self.scroll_message addSubview:_detailLabel];
    // 注册
    self.registerButton = [[UIButton alloc] initWithFrame:CGRectMake(84, 454 - 80, 256, 45)];
    self.registerButton.backgroundColor = COLOR1;
    [self.registerButton setTitle:@"注册" forState:0];
    [self.registerButton setTitleColor:[UIColor whiteColor] forState:0];
    self.registerButton.titleLabel.font = [UIFont systemFontOfSize:20];
    [self.scroll_message addSubview:_registerButton];
    // 登录
    self.loginButton = [[UIButton alloc] initWithFrame:CGRectMake(84, 522 - 80, 256, 45)];
    self.loginButton.backgroundColor = [UIColor clearColor];
    [self.loginButton setTitle:@"登录" forState:0];
    [self.loginButton setTitleColor:COLOR1 forState:0];
    self.loginButton.titleLabel.font = [UIFont systemFontOfSize:20];
    [self.scroll_message addSubview:_loginButton];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
